import axios from '@/libs/request/axios'
// 获取所有审批信息
export const getAllLoanInfo = (params) => {
    return axios.request({
        url: `/case/loanApprove/getAllLoanInfo`,
        params: params,
        method: 'post'
    })
}

// 获取OCR识别发票信息
export const getInvoice = (params) => {
    return axios.request({
        url: `/case/loanApprove/getInvoice`,
        params: params,
        method: 'post'
    })
}

// 获取发票验证信息
export const getInvoiceCheck = (params) => {
    return axios.request({
        url: `/case/loanApprove/getInvoiceCheck`,
        params: params,
        method: 'post'
    })
}

// 更新保险信息
export const savePaperInfo = (params) => {
    return axios.request({
        url: `/case/loanApprove/savePaperInfo`,
        data: params,
        method: 'post'
    })
}

export const getAddressTree = (params) => {
    return axios.request({
        url: `case/common/getAddressTree`,
        method: 'POST',
        data: params,
    })
};


//获取OCR验证结果
export const getOcrResult =(params) => {
    return axios.request({
        url:`/case/loanApprove/getOcrResult`,
        params:params,
        method: 'post'
    })
}

// VIN车架号校验
export const getVinCarCheck = (data) => {
    return axios.request({
        url: '/case/loanApprove/getVinCarCheck',
        params: {
            data:data
        },
        method: 'post'
    })
}


